<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:59:"/www/wwwroot/lc/application/index/view/wap/user/pwd2zh.html";i:1553234650;s:58:"/www/wwwroot/lc/application/index/view/wap/public/top.html";i:1553318898;s:60:"/www/wwwroot/lc/application/index/view/wap/public/layui.html";i:1553234650;s:62:"/www/wwwroot/lc/application/index/view/wap/public/zlxgtop.html";i:1553234650;s:59:"/www/wwwroot/lc/application/index/view/wap/public/hder.html";i:1553394014;}*/ ?>
<meta name="viewport" id="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<title><?php echo $config['sitename']; ?></title>
<meta name="description" content=""> 
<meta name="keywords" content="">  
<link rel="stylesheet" type="text/css" href="/public/wap/css/style.css">
<script type="text/javascript" src="/public/wap/js/jquery.js"></script>
<script type="text/javascript" src="/public/wap/js/jquery.superslide.2.1.1.js"></script><link rel="stylesheet" type="text/css" href="/public/wap/css/user.css">
<script type="text/javascript" src="/public/wap/js/web.js"></script>
<link rel="stylesheet" type="text/css" href="/public/wap/css/public.css">
<link rel="icon" href="<?php ECHO '/'.APP_UPLOADSS.'/'; ?><?php echo $config['photo_img']; ?>"  type="image/x-icon">
<link rel="stylesheet" type="text/css" href="/public/wap/css/common.css">

</head>
<body>
<div class="top" id="top">
    <div class="kf">
	  <?php if($actionf != 1): ?>  <p><a class="sb-back" href="javascript:history.back(-1)" title="返回" style=" display: block; width: 40px;    height: 40px;
    margin: auto; background: url(/public/wap/images/arrow_left.png) no-repeat 15px center;float: left;  
    background-size: auto 16px;font-weight:bold;">
    </a>
    </p><?php endif; ?>
	
		<div style="display: block;width:100%; position: absolute;top: 0;left: 0;height: 40px; line-height: 40px;background:#FD8852;color:#FFF ; <?php if($actionf != 1): ?> padding-left: 50px;<?php endif; ?>">

			   <a href="/mobile" style="color:#FFF;margin-left:10px;font-size:14px"><b><?php echo $config['title']; ?></b></a>
		</div>  
		      
      <?php if(!$userid): ?> <p><a href="<?php echo url('index/login'); ?>"><b>登录</b></a><!--<a href="<?php echo url('index/reg'); ?>"><b>注册</b></a>--></p><?php else: ?><p>
			  <b style="color: #FFF;    margin-left: 10px;    font-size: 14px;    margin-right: 10px;"><?php $user=userarray();echo $user['name']; ?></b><a href="<?php echo url('index/logout'); ?>"><b>退出</b></a></p><?php endif; ?>
		        
     </div>
</div>
<style>
.pagination > li > a, .pagination > li > span{

height:30px;
}
</style>
<link href="/public/layui/css/layui.css" type="text/css" rel="stylesheet">
 <script type="text/javascript" src="/public/layui/layui.js"></script>
 <!-- <script src="/public/layui/layui.all.js"></script> -->
 <script>
  layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  
  laydate.render({
    elem: '#stime' 
	,type: 'datetime'
  });

  
    });
 
 </script>
 <style>
 
 .layui-progress-big, .layui-progress-big .layui-progress-bar{
 
 
 }
 </style><link rel="stylesheet" type="text/css" href="/public/wap/css/userf.css">
<div class="user_zx_right">
<div class="box">
<div class="tagMenu">
<ul class="menu">
<li <?php if($actionc == "userzlxg"): ?>class="current"<?php endif; ?>><a href="<?php echo url('user/userzlxg'); ?>">资料修改</a></li>
<li <?php if($actionc == "pwdup"): ?>class="current"<?php endif; ?>><a href="<?php echo url('user/pwdup'); ?>">修改登录密码</a></li>
<li <?php if($actionc == "pwd2up"): ?>class="current"<?php endif; ?>><a href="<?php echo url('user/pwd2up'); ?>">修改交易密码</a></li>
<li <?php if($actionc == "pwd2zh"): ?>class="current"<?php endif; ?>><a href="<?php echo url('user/pwd2zh'); ?>">找回交易密码</a></li>
<li <?php if($actionc == "bankbd"): ?>class="current"<?php endif; ?>><a href="<?php echo url('user/bankbd'); ?>">银行卡绑定</a></li>
</ul>
<div class="hite"> <span id="account"></span> </div>
</div>
</div>
<div class="myinfo" style="padding:0px  20px; margin-bottom: 15px;background:#fff;">
<p style="margin-:15px;">您可以通过经常性修改登录密码更好的保护您的账号安全，以避免您受到意外损失</p>
<p style="margin-:15px;">1、经常性修改登录密码能有效的保护您的帐号安全</p>
<p style="margin-:15px;">2、涉及到您的资金安全，请勿设置简单的登录密码，不要设置和其它网站相同的登录密码</p>
<form action="" id=" theForm" method="post">
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" style="margin-top:10px;" height="90">
<tbody><tr height="40">
<td width="197" align="right" style="background:#F9F9F9;border-top:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;">会员账号：</td>
<td width="528" style="border-right:#e6e6e6 solid 1px;border-top:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; padding-left:5px;"><?php echo $user['name']; ?></td>
</tr>

<tr height="60">
<td style="background:#F9F9F9;border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;" align="right">新交易密码：</td>
<td style="border-right:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; padding-left:5px;"><input type="password" name="newpwd" id="newpwd" style="width:200px; height:40px; line-height:40px; border-radius: 15px; border:#CCCCCC solid 1px; padding:0px 8px;"> (输入您的新密码)</td>
</tr>
<tr height="60">
<td style="background:#F9F9F9;border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;" align="right">请再输入新密码：</td>
<td style="border-right:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; padding-left:5px;"><input type="password" name="pwd2" id="pwd2" style="width:200px; height:40px; line-height:40px; border-radius: 15px; border:#CCCCCC solid 1px; padding:0px 8px;"> (再输入一次您的新密码)</td>
</tr>
<tr height="60">
<td style="border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;" align="right">手机验证码：</td>
<td style="border-right:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; padding-left:5px;">

	<input type="text" name="yzm" id="yzm" style="width:60px; height:40px; line-height:40px; border-radius: 15px; border:#CCCCCC solid 1px; padding:0px 8px;" maxlength="6"> 
	<a style="background:#ff6600;padding:5px; color:#FFFFFF; font-size:14px;" id="jq_send" >获取手机验证码</a> </td>
</tr>
<tr height="50">
<td style="border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;" align="right"></td>
<td style="border-right:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; color:#ff9600; padding-left:3px;">  <input id="sub" type="button" value="提交更新" class="btnsubupdate"> <input type="button" value="&nbsp;&nbsp;取消&nbsp;&nbsp;" class="btncancel" onclick="location.href=location.href;" id="btn_cancel"></td>
</tr>
</tbody></table>
</form>
</div>
</div>
<script>
$(function(){
 function loginsubmit(){
	
                var oldpwd=true;
                var newpwd=true;
				var pwd2=true;
               


              

                if($('#newpwd').val() == ''){
                    msg("新密码不能为空");
                    $('#newpwd').focus();
                    newpwd = false;
                    return false;
                }
				 if($('#pwd2').val() == ''){
                    msg("确认密码不能为空");
                    $('#theForm input[name=pwd2]').focus();
                    pwd2 = false;
                    return false;
                }
				if($('#pwd2').val() != $('#newpwd').val()){
                   msg("2次密码不一致");
                    $('#newpwd').focus();
                    pwd2 = false;
					 $('#pwd2').focus();
                    newpwd = false;
                    return false;
                }
           
		   if($('#yzm').val() ==''){
                   msg("验证码不能为空");
                    $('#yzm').focus();
                    
                    
                    return false;
                }
               

                if(   $('#theForm input[name=newpwd]').val() != ''){
                    $.ajax({
                        async:false,
                        url:"<?php echo url('user/pwd2zh'); ?>",
                        data:{'newpwd':$('#newpwd').val(),'pwd2':$('#pwd2').val(),'yzm':$('#yzm').val()},
                        type:'post',
                        dataType:'json',
                        success:function(res){
							console.log(res);
                            if(res.status != 1){
                                msg(res.msg);
                               
                               
                                return false;
                            }else{
								msg(res.msg);
                            setTimeout(function(){window.location.reload();},2000);
                            }
							if(res.url){
							setTimeout(function(){window.location.href=res.url},2000);
							}
                        },
                        error : function(XMLHttpRequest, textStatus, errorThrown) {
							console.log(XMLHttpRequest);
                            $('#error').html('<span class="error">网络失败，请刷新页面后重试!</span>');
                        }
                    });
                }else{
                    return false;
                }
            }

           
            $('#sub').on('click',function(){
				
                loginsubmit();
            });
			
			
           
			
        });
</script>
 <script type="text/javascript">
        var mobile_timeout;
        var mobile_count = 100;
        var mobile_lock = 0;
        $(function () {
            $("#jq_send").click(function () {
				
                if (mobile_lock == 0) {
                    mobile_lock = 1;
                    $.post("<?php echo url('sendsms/sendsmsf'); ?>",{mobile:'<?php echo $user['mobile']; ?>'},function(data){
						
                        if(data.status == 'success'){
							
                            mobile_count = 60;
                           msg("发送成功"); 
                            BtnCount();
                        }else{
							msg("发送失败");
                            mobile_lock = 0;
                           
                        }
                    },'json');

					return false;
                }

            });

			
        });
		
        function BtnCount () {
            if (mobile_count == 0) {
                $('#jq_send').html("重新发送"); $("#jq_send").attr('disabled',false);
                mobile_lock = 0;
                clearTimeout(mobile_timeout);
            }
            else {
                mobile_count--;
				 $("#jq_send").attr('disabled',true);
                $('#jq_send').html("重新发送(" + mobile_count.toString() + ")秒");
                mobile_timeout = setTimeout(BtnCount, 1000);
            }
        };
    </script>
<div class="footer">
  <div class="footer-copyright">
    <div class="copyright">
     <!-- <p><?php echo $config['title']; ?>客服热线：<?php echo $config['tel']; ?> &nbsp;&nbsp;</p>-->
      <p>版权所有 © <?php echo $config['title']; ?> </p>
      <p class="right">
        <?php echo $config['icp']; ?></p>

        <div style="clear: both;"></div>
	<br><br>
    </div>
    
     </div>  
  </div>  





<link href="/public/wap/css/zzsc.css?v=1.0.1" rel="stylesheet" type="text/css">

<!-- </head>
<body> -->
<style>
.f_home.active {
    background: url(/public/wap/images/navhomeh.png) no-repeat top center;
    background-size: 21px;
    color: #D8232C;
	text-align: center;
    color: #9f9f9f;
    font-size: 12px;
    box-sizing: border-box;
    padding-top: 20px;
}
.f_account {
    background: url(/public/wap/images/navacc.png) no-repeat top center;
    background-size: 19px;
	text-align: center;
    color: #9f9f9f;
    font-size: 12px;
    box-sizing: border-box;
    padding-top: 20px;
}
.f_borrow {
    background: url(/public/wap/images/navborrow.png) no-repeat top center;
    background-size: 21px;
	text-align: center;
    color: #9f9f9f;
    font-size: 12px;
    box-sizing: border-box;
    padding-top: 20px;
}
.f_invest {
    background: url(/public/wap/images/navinvest.png) no-repeat top center;
    background-size: 21px;
		text-align: center;
    color: #9f9f9f;
    font-size: 12px;
    box-sizing: border-box;
    padding-top: 20px;
}
.f_touz {
    background: url(/public/wap/images/chongzhi.gif) no-repeat top center;
    background-size: 21px;
		text-align: center;
    color: #9f9f9f;
    font-size: 12px;
    box-sizing: border-box;
    padding-top: 20px;
}
.f_geng {
    background: url(/public/wap/images/shezhi.gif) no-repeat top center;
    background-size: 21px;
		text-align: center;
    color: #9f9f9f;
    font-size: 12px;
    box-sizing: border-box;
    padding-top: 20px;
}
.appdown {
	display: none;
   
    background-size: 40px;
    width: 100%;
	 max-width: 450px;
    height: 46px;
    position: fixed;
    bottom: 53px;
   
    z-index: 8888888;
    color: #fff;
    padding-left--: 55px;
    font-size: 12px;
}
.appBtn {
    background: #D8232C;
    padding: 2px 5px;
    color: #fff;
    border-radius: 5px;
    margin-top: 10px;
    margin-right-: 15px;
	FLOAT:RIGHT;
}
.appClose {
    font-size: 35px;
    font-weight: bold;
    line-height: 46px;
    padding-right: 10px;
    padding-left: 10px;
    cursor: pointer;
}

</style>
<div class="yb_conct">
  <div class="yb_bar">
    <ul>
      <li><a href="<?php echo url('index/index'); ?>" class="f_home active" id="menu1" title="电话">首页</a></li>
	   <li><a class="navAccount f_account " id="menu3" href="<?php echo url('user/index'); ?>" title="个人中心">个人中心</a></li>
	   <li><a  href="<?php echo url('openrate/index'); ?>" class="f_geng " id="menu5" title="更多">更多</a></li>
	   
    </ul>
  </div>
</div>



</body></html>